import request from '@/utils/request'
import type {account, userRegisterInfo} from '../../type/user/index'
//用户注册
export const userRegister=(data:userRegisterInfo)=>{
    return request({
        url:'/auth/sign_up',
        method:'post',
        data
    })
}

//用户登录
export  const userLogin=(data:account)=>{
    return request({
        url:'/auth/sign_in',
        method:'post',
        data
    })
}